package recallin.gui;

import recallin.activities.MainActivity;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Shader;

/**
 * A paint pallett that holds paint.
 * @author philipmasek
 *
 */

public class PaintPallett {

	
	
	public static Paint getWayStrokePaint(){
		
		Paint wayDefaultPaintOutline = new Paint(Paint.ANTI_ALIAS_FLAG);
		wayDefaultPaintOutline.setStyle(Paint.Style.STROKE);
		wayDefaultPaintOutline.setColor(Color.BLUE);
		wayDefaultPaintOutline.setAlpha(128);
		wayDefaultPaintOutline.setStrokeWidth(7);
		wayDefaultPaintOutline.setStrokeJoin(Paint.Join.ROUND);
		
		return wayDefaultPaintOutline;
	}
	
	public static Paint getWayFillPaint(){
		Paint wayDefaultPaintFill = new Paint(Paint.ANTI_ALIAS_FLAG);
		wayDefaultPaintFill.setStyle(Paint.Style.STROKE);
		wayDefaultPaintFill.setColor(Color.BLUE);
		wayDefaultPaintFill.setAlpha(160);
		wayDefaultPaintFill.setStrokeWidth(7);
		wayDefaultPaintFill.setStrokeJoin(Paint.Join.ROUND);
		wayDefaultPaintFill.setPathEffect(new DashPathEffect(new float[] { 20, 20 }, 0));
		
		return wayDefaultPaintFill;
	}

	public static Paint getCircleStrokePaint(){
		Paint circleDefaultPaintOutline = new Paint(Paint.ANTI_ALIAS_FLAG);
		circleDefaultPaintOutline.setStyle(Paint.Style.STROKE);
		circleDefaultPaintOutline.setColor(Color.BLUE);
		circleDefaultPaintOutline.setAlpha(128);
		circleDefaultPaintOutline.setStrokeWidth(3);
		return circleDefaultPaintOutline;
	}
	
	public static Paint getCircleFillPaint(){
		Paint circleDefaultPaintOutline = new Paint(Paint.ANTI_ALIAS_FLAG);
		circleDefaultPaintOutline.setStyle(Paint.Style.FILL_AND_STROKE);
		circleDefaultPaintOutline.setColor(Color.BLUE);
		circleDefaultPaintOutline.setAlpha(90);
		circleDefaultPaintOutline.setStrokeWidth(3);
		return circleDefaultPaintOutline;
	}
	public static Paint getLocationFillPaint(){
		Paint circleDefaultPaintOutline = new Paint(Paint.ANTI_ALIAS_FLAG);
		circleDefaultPaintOutline.setStyle(Paint.Style.FILL_AND_STROKE);
		circleDefaultPaintOutline.setColor(Color.parseColor("#002b9a"));
		circleDefaultPaintOutline.setStrokeWidth(3);
		return circleDefaultPaintOutline;
	}
	
	
	
}
